package com.ds.smartstudio.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author yangsf
 * @since 2022-07-02 10:42:24
 */
@Getter
@Setter
@TableName("ds_history")
@ApiModel(value = "History对象", description = "对应历史记录表")
public class  History {

    @ApiModelProperty("关联设备")
    @TableField("ds_device_mac")
    private String dsDeviceMac;

    @ApiModelProperty("记录值")
    @TableField("ds_history_value")
    private String dsHistoryValue;

    @ApiModelProperty("记录数据产生的时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("ds_history_id")
    private Integer dsHistoryId;


}
